package com.chance.cc.crawler.development.command.script.xhs;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.job.domain.xhs.daily.XHSTraceCommentCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.script.ScriptCommand;

/**
 * @author bx
 * @date 2020/12/7 0007 10:54
 */
public class XHSCrawlerScript {

    private static ScriptCommand scriptCommand = new ScriptCommand("192.168.1.215",9599,"com.chance.cc.crawler.development.scripts.xiaohongshu");

    public static void publishCrawlerNodeScript(){

        HttpPage page = scriptCommand.publishCrawlerScript2Consul(XHSTraceCommentCrawlerScheduleJob.domainId);
        System.out.println("发布采集脚本：" + page.getRawText());
    }

    public static void main(String[] args) {
        publishCrawlerNodeScript();
    }
}
